package string;

public class StingIntercept {
    public static void main(String[] args) {
        String str="helloworld";
        //1、从指定索引截取到结尾
        String str1=str.substring(4);
        System.out.println(str1);
        //2、截取部分字符串
        String str2=str.substring(2,5);
        System.out.println(str2);
    }
}
